export const radioData = [
    {
        name: 'SLR01-08b',
        freq: '2.4G',
        status: '连接',
        usage: '21.12%',
        SNR: 134.12
    },
    {
        name: 'SLR01-08b',
        freq: '5G',
        status: '未连接',
        usage: '48.12%',
        SNR: 51.58
    }
];

export const radioColumns = [
    {
        'title': 'AP名',
        'key': 'name',
        // render: (h, params) => {
        //     return h('a', {
        //         domProps: {
        //             href: `#/AC-detail/${params.row.id}`
        //         }
        //     }, params.row.name);
        // }
    },
    {
        'title': '频段',
        'key': 'freq',
        filters: [
            {
                label: '2.4G',
                value: '2.4G'
            },
            {
                label: '5G',
                value: '5G'
            }
        ],
        filterMultiple: false,
        filterMethod(value, row) {
            return row.status === value

        },
    },
    {
        'title': '状态',
        'key': 'show',
        filters: [
            {
                label: '连接',
                value: '连接'
            },
            {
                label: '未连接',
                value: '未连接'
            }
        ],
        filterMultiple: false,
        filterMethod(value, row) {
            return row.status === value

        },
        render: (h, params) => {
            return h('Tag', {
                props:
                    { color: params.row.status === '连接' ? 'green' : 'red' }
            }, params.row.status);
        }
    },
    {
        'title': '终端信噪比',
        'key': 'SNR',
        sortable: true,
    },
    {
        'title': '信道利用率',
        'key': 'usage',
        sortable: true,
    },
];
